export function isEnabled(method: MediaStreamTrack[], value: boolean = false) {
    method.forEach(track => {
        track.enabled = value
    })
}

export function mediaStop(method: MediaStreamTrack[]) {
    method.forEach(track => {
        track.stop()
    })
}
